package org.sensornet2010.co2sh.core;

public class SensornetException extends RuntimeException {
	
	private static final long serialVersionUID = 1L;
	
	public static final int	UNCONTROLED_ERROR 		= 1;
	public static final int	COMMUNICATION_ERROR 	= 2;
	public static final int	SENSOR_ERROR			= 3;	
	public static final int	SOUND_RECORDING_ERROR	= 4;	

	public SensornetException(Exception e, int type, String message) {
		super("SensornetException:" + type + ":"+ message);
		if (e!=null) e.printStackTrace();
	}

}
